package com.zhuhjay.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-01-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_log")
@ApiModel(value = "SystemLog对象", description = "")
public class SystemLog implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("处理方法")
    @TableField("method_name")
    private String methodName;

    @ApiModelProperty("方法描述")
    @TableField("method_desc")
    private String methodDesc;

    @ApiModelProperty("请求方式")
    @TableField("request_method")
    private String requestMethod;

    @ApiModelProperty("请求用户")
    @TableField("request_username")
    private String requestUsername;

    @ApiModelProperty("请求url")
    @TableField("request_url")
    private String requestUrl;

    @ApiModelProperty("请求ip")
    @TableField("request_ip")
    private String requestIp;

    @ApiModelProperty("请求数据")
    @TableField("request_data")
    private String requestData;

    @ApiModelProperty("响应结果")
    @TableField("response_result")
    private String responseResult;

    @ApiModelProperty("响应状态码")
    @TableField("response_code")
    private Integer responseCode;

    @ApiModelProperty("请求处理时长, 单位ms")
    @TableField("process_time")
    private Integer processTime;

    @ApiModelProperty("日志记录时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
